package com.niguang.govt.admin.api.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author 12380
 * @since 2018-12-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("work_labor_company")
public class LaborCompany extends Model<LaborCompany> {

    public static final String ID = "id";
    public static final String LABOR_NAME = "labor_name";
    public static final String CREATE_TIME = "create_time";
    public static final String DEL_FLAG = "del_flag";
    public static final String LICENSE_IMG = "license_img";
    public static final String LICENSE = "license";
    public static final String ADDRESS = "address";
    public static final String LABOR_TAG = "labor_tag";
    private static final long serialVersionUID = 1L;
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 劳务公司名称
     */
    private String laborName;
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    /**
     * 是否删除 0--未 1-删除
     */
    @TableLogic
    private Integer delFlag;
    /**
     * 营业执照照片
     */
    private String licenseImg;
    /**
     * 营业执照编号
     */
    private String license;
    /**
     * 地址
     */
    private String address;
    /**
     * 标识 是否是劳务总包  1-----  是劳务总包
     */
    private Integer laborTag;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
